<template>
	<view>
		<view class="Sign">
			<view class="SignHead">
				<image src="../../static/logo.png" style="width: 92rpx;height: 108rpx;" mode=""></image>
				<text style="color: #DFB994;font-size: 38rpx;font-weight: 400;margin-left: 10rpx;">融多多贷款</text>
			</view>
			<view style="font-size: 40rpx;font-family: Bahnschrift;font-weight: 500;color: #000000;margin-top: 30rpx;">
				欢迎登录融多多
			</view>
			<view style="font-family: PingFang SC;color: #000000;font-size: 36rpx;margin-top: 130rpx;">
				<input type="number" value="" v-model="phone" style="border-bottom: 1px solid #F8F8F8;font-weight: 500;padding: 16rpx 0;" />
				<view style="font-size: 24rpx;font-family: PingFang SC;font-weight: 500;color: #888888;margin-top: 16rpx;">
					未注册的手机号验证后自动创建账户
				</view>
			</view>
			<view class="SignYZM" @click="SignClick()" :style="phone == ''?'background:#D9D9D9;':'background: linear-gradient(-84deg, #DFBA94, #DFAE7C);'">
				获取验证码
			</view>
			<view style="font-size: 24rpx;font-family: PingFang SC;font-weight: 500;color: #888888;position: fixed;bottom: 50rpx;left: 0;text-align: center;width: 100%;">
				登录即同意<text style="color: #DFB994;">《融多多贷款用户协议》</text>和<text style="color: #DFB994;">《隐私协议》</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {
			
		},
		data() {
			return {
				phone:''
			}
		},
		methods: {
			SignClick(){
				var that = this;
				console.log(that.phone)
				this.$H.get('moblie/verify', {
					phone: that.phone,
				}, {
					native: false
				}).then(res => {
					if(res.status == 200){
						uni.navigateTo({		//立即还款
						    url: '../second/VerificationCode?phone=' + that.phone
						});
					}else{
						uni.showToast({
						    title: res.msg,
							icon:'none',
						    duration: 2000
						});
					}
				})
			}
		}
	}
</script>

<style>
	.SignYZM{
		width: 650rpx;
		height: 95rpx;
		background: linear-gradient(-84deg, #DFBA94, #DFAE7C);
		box-shadow: 1rpx 3rpx 10rpx 0rpx rgba(0, 0, 0, 0.16);
		border-radius: 48rpx;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #FFFFFF;
		text-align: center;
		line-height: 95rpx;
		margin-top: 55rpx;
	}
	.SignHead{
		padding-top: 200rpx;
		font-family: PingFang SC;
	}
	.Sign{
		width: 100%;
		padding: 0 50rpx;
		box-sizing: border-box;
	}
	page{
		background: #FFFFFF;
	}
</style>
